import Cookies from 'js-cookie'

const Tokenkey = 'pplpp'
const Timekey = 'cclcc'

export function getToken () {
  return Cookies.get(Tokenkey)
}

export function setToken (token) {
  return Cookies.set(Tokenkey, token)
}

export function removeToken () {
  return Cookies.remove(Tokenkey)
}

// 设置时间戳
export function getTimeStamp () {
  return Cookies.get(Timekey)
}

export function setTimeStamp () {
  return Cookies.set(Timekey, Date.now())
}
